package com.class05.ioc01;

import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@ToString
public class MyComponent {


    @Value("${my.name:lisi}")
    private String name;

    @Value("${my.firstName}")
    private String firstName;

}
